<%--
  Created by IntelliJ IDEA.
  User: Baggio
  Date: 2017-11-22
  Time: 14:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录/注册</title>
    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/include-wap.jsp" %>
    <link rel="stylesheet" type="text/css" href="/static/css/wap/user/login.css" />
</head>
<body>

<input type="hidden" value="${user.tid}" id="userId" name="userId">

<c:if test="${!empty user}">
<div class="successful-mg">
    <div class="mg-box">
        <h3>收货人信息</h3>
        <span>收货手机号：</span>${user.phone}<br/>
        <input type="hidden" name="tid" id="tid" value="${user.tid}">

        <span>收货人姓名：</span><input type="text" name="userName" id="userName" value="${user.userName}"><br/>
        <span>收&nbsp;&nbsp货&nbsp地&nbsp址：</span><input type="text" name="userAddress" id="userAddress" value="${user.userAddress}"><br/>
        <button class="modifyUserBtn">确认修改</button>
    </div>
</div>
</c:if>

<c:if test="${empty user}">

    <!-- 登录框 -->
    <form id="login">
        <div class="login_box">
            <div class="title">登录</div>

            <div class="user_box">
                <span>用&nbsp;&nbsp;&nbsp;户：</span><input type="text" placeholder="请输出入手机号" class="user" name="phone">
            </div>
            <div class="user_box">
                <span>密&nbsp;&nbsp;&nbsp;码：</span><input type="password" placeholder="请输出入密码" class="password" name="passWord">
            </div>

            <div class="sub_box">
                <input type="button" value="登录" class="sub1">
                <a href="javascript:void(0);" class="register_link">注册</a>
            </div>
            <div class="forget">

                <%--<i class="separate"></i>--%>
                <%--<a href="javascript:void(0);" class="forget_link">忘记密码</a>--%>
            </div>
        </div>
    </form>

    <%--<div class="register_box2 tt_one">
        <div class="esc"><span class="esc_e"><img src="/static/images/include/head_05.png" alt=""></span>
        </div>
        <div>
            <input type="password" placeholder="请输入新密码" name="password" class="password4">
                &lt;%&ndash;<span><img src="/static/images/include/head_07.png" alt=""></span>&ndash;%&gt;
        </div>
        <div>
            <input type="password" placeholder="请再次输入密码" name="password2" class="password4_1">
                &lt;%&ndash;<span><img src="/static/images/include/head_07.png" alt=""></span>&ndash;%&gt;
        </div>
        <input type="text" placeholder="请输入手机号" class="phone4">
        <div>
            <input type="text" placeholder="请输入验证码" class="verification4_1">
            <input type="button" value="获取验证码" class="verification4_2">
        </div>
        <button class="sub4">确定</button>
    </div>--%>

<!-- 注册框 -->
<form id="register">
    <div class="register_box1">
        <div class="title">
            <%--<span class="esc_e"><img src="/static/images/include/head_05.png" alt=""></span>--%>
                <%--<a href="javascript:history.back(-1);"><img src="/static/images/wap/product/fh.png" alt=""></a>--%>
            <h3>会员注册</h3>

        </div>
        <div class="box">
            <span>用户姓名:</span>
            <input type="text" placeholder="请输入真实姓名" class="name2" name="userName">

        </div>
        <div class="box">
            <span>收货地址:</span>
            <input type="text" placeholder="请输入收货详细地址" class="address2" name="userAddress">

        </div>
        <div class="box">
            <span>密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</span>
            <input type="password" placeholder="请输入密码" class="password2" name="passWord">
            <%--<span><img src="/static/images/include/head_07.png" alt=""></span>--%>
        </div>
        <div class="box">
            <span>确认密码:</span>
            <input type="password" placeholder="请再次输入密码" class="password2_1" name="passWord2">
            <%--<span><img src="/static/images/include/head_07.png" alt=""></span>--%>
        </div>
        <div class="box">
            <span>手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机：</span>
            <input type="text" placeholder="请输入手机号" name="phone">
        </div>

        <input type="text" placeholder="请输入验证码" class="verification_1" name="code">
        <input type="button" value="获取验证码" class="verification_2">

        <input type="button" value="注册" class="sub2">
    </div>
</form>

</c:if>



</body>
</html>

<%--<script type="text/javascript" src="/static/js/wap/user/myQRCode.js"></script> --%>
<script type="text/javascript" src="/static/js/wap/user/login.js"></script>